//
// Created by wuxiangan on 2022/5/27.
//

#ifndef SDL_ANDROIDAPPLICATION_H
#define SDL_ANDROIDAPPLICATION_H

#include "LuaGui.h"
namespace LuaGui {
	class AndroidApplication : public LuaGui::SdlApplication {

	public:
		AndroidApplication();
		~AndroidApplication();

		static AndroidApplication* GetInstance() {
			if (!LuaGui::Application::s_application) LuaGui::Application::s_application = new AndroidApplication();
			return (AndroidApplication*)LuaGui::Application::s_application;
		}

	public:
		virtual void Init(int argc, char** argv) override;
		virtual void OnScreenSize() override;  // 窗体大小改变事件
		virtual LuaGui::Logger* GetConsoleLogger() override { return LuaGui::AndroidLogger::GetSingleton(); }

	private:
		std::vector<int8_t> m_font_data;
	};
}


#endif //SDL_ANDROIDAPPLICATION_H
